package org.liveboardgames.agricola.control.delegates.action.prerequisite
{
    import org.liveboardgames.agricola.control.delegates.helper.GameHelper;
    import org.liveboardgames.agricola.vo.player.Player;
    
    public class EmptySpacePrerequisiteChecker extends PrerequisiteChecker
    {
        public function EmptySpacePrerequisiteChecker(player:Player)
        {
            super(player);
        }
        
        override public function check():Boolean
        {
            // Check that there is at least one empty space
            // TODO: for the future, check that there is one empty space 
            // at the appropriate place
            var hasEmtySpace:Boolean = GameHelper.hasEmptySpace(player.farm);
            
            return hasEmtySpace;
        }
    
    }
}